<%@ page contentType="text/html;charset=UTF-8" language="java" isErrorPage="true" %>
<%@ page import="org.apache.commons.lang3.exception.ExceptionUtils" %>
<%
    String message = ExceptionUtils.getRootCauseMessage(pageContext.getException());
    pageContext.getException().printStackTrace();
    if(message != null) {
        message = message.substring(message.indexOf(":") + 1);
    }
%>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
</head>
<body>
服务器发生错误：<span style="color:red"><%=message%></span>
</body>
</html>
